package com.tongna.tenant;

/**
 * TenantDemo
 *
 * @author 张浩伟
 * @version 1.01 2018年02月09日
 */
public class CurrentTenantIdentifierHolder {

    private static final ThreadLocal<String> ctx = new ThreadLocal<String>();

    public static void set(String tenantIdentifier) {
        ctx.set(tenantIdentifier);
    }


    public static String get() {
        return ctx.get();
    }

    public static void clear() {
        ctx.remove();
    }

}
